import Mock from "mockjs";
const { list } = Mock.mock({
  list: [
    {
      type: "Job",
      "jobText|6": ["@cword(4)"],
      "jobData|6": [/^(?:[1-9]\d?|[1-4]\d{2}|500)$/],
    },
    {
      type: "LeftMidEchart",
      res1: {
        "data1|12": [/^[0-9][0-9]$/],
        "data2|12": [/^[0-9][0-9]$/],
      },
      res2: {
        "data1|12": [/^[0-9][0-9]$/],
        "data2|12": [/^[0-9][0-9]$/],
      },
    },
    {
      type: "RightMidEchart",
      "data1|30": [/^[0-9][0-9]$/],
      "data2|30": [/^[0-9][0-9]$/],
    },
  ],
});
Mock.mock(/\/api\/mock\/get/, "get", () => {
  return {
    status: 200,
    msg: "请求成功",
    list,
  };
});
